package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.IServeProviderService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: menghao
 * @version: 1.0
 * @Date: 2025/09/16 14:40
 * @Description:
 */
@RestController
@RequestMapping("/open/serve-provider")
@Api(tags = "白名单接口 - 客户注册相关接口")
public class RegisterController {

    @Resource
    private IServeProviderService serveProviderService;

    /**
     * 机构注册
     */
    @PostMapping("/institution/register")
    public void registerForInstitution(@RequestBody InstitutionRegisterReqDTO dto) {
        //机构注册
        serveProviderService.registerForInstitution(dto);
    }
}
